home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
graphics
/
circuit_macros
/
examples
/
ex1.m4
< prev
next >
Wrap
Text File
|
1994-03-13
|
736b
|
29 lines
.PS
linewid = 0.75
del = linewid/4
define(`elen_',linewid)
LL: Here
up_;
source(up linewid+2*del); llabel(-,v_s,+)
right_
cswitch; llabel(,t = 0,)
iresistor; llabel(,47\`,'\Omega,); {"$i_R$" at last arrow above}
line right_ linewid/2 then down_ del
par_(`iInductor; llabel(,L,) {"$\;i_L$" at last arrow ljust}',
`capacitor; rlabel(+,v_C,-); llabel(,,C)',
linewid)
line to (Here,LL) then to LL
right_
move to last[].c + (0.05,0)
arc -> cw from rvec_(vscal_(del,Cos(30),-Sin(30)))\
to rvec_(vscal_(del,Cos(30),Sin(30))) rad del at Here
"$i_2$" at last arc
move to LL + (4*del,3*del)
arc -> cw rad 2*del from rvec_(vscal_(2*del,Cos(30),-Sin(30)))\
to rvec_(vscal_(2*del,Cos(30),Sin(30))) at Here
"$i_1$" at last arc
.PE